compress the string python solution

visit shbcf.ru